package qviewer;

import gui.ImageListShower;
import gui.form.MainForm;
import process.ImportManager;

public class ServiceManager {

    private static ServiceManager instance = null;
    private ImageListShower shower;
    private ImportManager importManager;
    private MainForm mainForm;

    public MainForm getMainForm() {
        return mainForm;
    }

    public void setMainForm(MainForm mainForm) {
        this.mainForm = mainForm;
    }

    public ImageListShower getShower() {
        return shower;
    }

    public void setShower(ImageListShower shower) {
        this.shower = shower;
    }

    private ServiceManager() {
    }

    public static ServiceManager getInstance() {
        if (instance == null) {
            instance = new ServiceManager();
        }
        return instance;
    }

    public ImportManager getImportManager() {
        return importManager;
    }

    public void setImportManager(ImportManager importManager) {
        this.importManager = importManager;
    }
}
